<script setup lang="ts">
import { ConsultTypeEnum } from '@/enums'
import ConsultList from './components/consult-list.vue'
</script>

<template>
  <div class="consult-page">
    <van-nav-bar
      fixed
      title="问诊记录"
      left-arrow
      @click-left="$router.back()"
    />
    <van-tabs sticky>
      <van-tab title="极速问诊"
        ><consult-list :type="ConsultTypeEnum.Fast"
      /></van-tab>
      <van-tab title="找医生"
        ><consult-list :type="ConsultTypeEnum.Doctor"
      /></van-tab>
      <van-tab title="开药问诊"
        ><consult-list :type="ConsultTypeEnum.Medication"
      /></van-tab>
    </van-tabs>
  </div>
</template>

<style lang="scss" scoped>
.consult-page {
  padding-top: 46px;
  background-color: var(--cp-bg);
  min-height: calc(100vh - 46px);
}
</style>
